using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using PlugNT.Common;
using PlugNT.Cms.BLL;
using PlugNT.Cms.Model;
using PlugNT.Cms.Page;

namespace PlugNT.Cms.Web.Admin.Pre_SysModel
{
    public partial class SetCurrentAjax : AdminPager
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            this.CheckPower();

            string sid = Request.QueryString["id"] == null ? "0" : Request.QueryString["id"];
            if (Utils.IsNumeric(sid))
            {
                int id = int.Parse(sid);
                SysModelInfo sInfo = SysModel.GetSysModelInfoFromDictionary(id);
                if (sInfo != null)
                {
                    this.SetSysModelId(id);
                    Response.Write("ok-" + sInfo.name);
                }
            }
           
        }
    }
}

